package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.UserManagement;

import java.util.List;
import java.util.Map;

public interface UserManagementDao {
    //新增用户
    public void add(UserManagement userManagement);
    //用户分页查询
    public Page<UserManagement> selectByCondition(String queryString);
    //清除原来的关联关系
    public void deleteAssocication(Integer id);
    //编辑用户基本信息
    public void edit(UserManagement userManagement);
    //将新增的用户id和其关联的检查项的id添加到t_usermanagement_role表中
    public void  setUserManagementAndRole(Map map);
    //查询所有用户
    public List<UserManagement> findAll();
    //删除用户
    public void delete(Integer id);
    //根据用户id查询用户包含的多个角色id
    public List<Integer> findRoleIdsByUserManagementId(Integer id);
    //根据id查询用户
    public UserManagement findById(Integer id);
}
